﻿#ifndef GRAPHICSVACUUMPUMPITEM_H
#define GRAPHICSVACUUMPUMPITEM_H

#include <QGraphicsObject>

class GraphicsVacuumPumpItem : public QGraphicsObject
{
    Q_OBJECT
public:
    GraphicsVacuumPumpItem();
    void setState(bool on);
    QRectF boundingRect() const override;
    QPointF keyPoint(int i);
signals:
    void pumpStateChanged(bool on);
private:
    void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;

    bool m_state = false;
};

#endif // GRAPHICSVACUUMPUMPITEM_H
